package com.lu.statistics.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.lu.statistics.entity.MtWedding;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface MtWeddingMapper extends BaseMapper<MtWedding> {

    /**
     * 查询分页婚庆列表
     *
     * @param page
     * @param isAvailable
     * @return
     */
    IPage<MtWedding> queryPageWeddingList(IPage<MtWedding> page, @Param("isAvailable") String isAvailable);

    /**
     * 统计婚庆名称数量
     *
     * @param weddingName
     * @return
     */
    int queryWeddingCount(@Param("weddingName") String weddingName);

    /**
     * 按婚庆类型查询最新的婚庆编码
     *
     * @param weddingType
     * @return
     */
    String queryMaxWeddingNumberByType(@Param("weddingType") String weddingType);
}
